<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>

		<script type="text/javascript">
		
		window.onload= function (){
			setInterval(fun,1000);
			function fun(){
			var yuandan=new Date('2016/12/15');
			var today=new Date();
			var yuandanmiao=Math.ceil(yuandan.getTime()/1000);
			var todymiao=Math.ceil(today.getTime()/1000);
			var tim=yuandanmiao-todymiao;
			var rrr=tim.valueOf();
			// var day =Math.floor(tim/86400);
			// var hour=Math.floor((tim%86400)/3600);
			// var fen =Math.floor(((tim%86400)%3600)/60);
			// var miao=Math.floor(((tim%86400)%3600)%60);
			day2=document.getElementById('day2');
			// hour2=document.getElementById('hour2');
			// fen2=document.getElementById('fen2');
			// miao2=document.getElementById('miao2');
			day2.innerHTML= rrr
			// hour2.innerHTML=hour
			// fen2.innerHTML=fen
			// miao2.innerHTML=miao
			}
		}
		
		
	</script>
</head>
<body>
	<p id="day2"></p>
</body>
</html>